package com.unei.scala.demo

class Point (val x:Int,val y:Int){

}

class Rectangle(val topLeft:Point,val bottomRight:Point){
    def left=topLeft.x 
    def right=bottomRight.x 
    def width=right-left
}

